package com.hxzy.shop.dto.convert;

import com.hxzy.shop.dto.resp.MerchantInfoResp;
import com.hxzy.shop.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author ht
 * @Date 2022/1/26 14:10
 * @Version 1.0
 */
@Mapper
public abstract class MerchantConvert {

    public static MerchantConvert INSTANCE = Mappers.getMapper(MerchantConvert.class);

    /**
     * Merchant-->MerchantInfoResp
     * @param merchant
     * @return
     */
    public abstract MerchantInfoResp merchantToInfoResp (Merchant merchant);
}
